package cn.itcast.lock;

public class Demo {
	
	public static void main(String[] args) {
		
		MySevice sevice = new MySevice();
		
		DemoLockMyThred thread1 = new DemoLockMyThred(sevice,"玛丽");
		
		DemoLockMyThred thread2 = new DemoLockMyThred(sevice,"王五");
		
		thread1.start();
		thread2.start();
		
	}

}
